
body{
    background-image: linear-gradient(rgba(255, 251, 254, 0.92),rgba(255, 251, 254, 0.96)),url(../GIFFILES/cupcakes.gif);
    background-size: 10em;
}


img{
    border-radius: var(--r-lg);
}

.about-me {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 0em 2em 2em 2em;
    width: min(72em, 100%);
    margin: 0em auto;

    img{
        max-width: 20vw;
        max-height: auto;
        min-width: 20%;
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-md);
        border: 2px solid rgba(255, 255, 255, 0.9);
        transition: transform var(--slow) var(--ease);
    }
    img:hover{
        transform: translateY(-4px) rotate(-1deg);
    }
    div{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.9em;
        padding: 1em;
        width: 50%;
    }
    /* leave .quote alone - it sets its own light text on a dark panel */
    p:not(.quote){
        font-size: 1.1em;
        color: var(--ink-soft);
    }
}

.links{
    margin: 1em auto 3em auto;
    width: min(60em, calc(100% - 2em));
    padding: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5em;

    background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.94)),url(../GIFFILES/cupcakes.gif);
    background-size: 10em;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);

    h2{
        width: 100%;
        text-align: center;
        padding: 0.5em 1em;
    }
}

.socialCard{
    flex: 1 1 14em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    padding: 0.5em;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    transition: transform var(--med) var(--ease),
                box-shadow var(--med) var(--ease);
    img{
        padding: 0.75em;
        width: 30%;
        max-width: 5em;
        height: auto;
        border-radius: 50%;
    }
    a{
        color: var(--purple-deep);
        font-weight: bold;
    }
}

.socialCard:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


@media (max-width: 768px) {

    .about-me{
        display: flex;
        flex-direction: column ;
        width: 100%;
        padding: 0em 1em 1.5em 1em;
        align-items: center;
        div{
            padding: 1em;
            width: 100%;
        }
        img{
            max-width: 55vw;
        }
    }

    .links{
        padding: 1em;
        margin: 1em;
        display: flex;
        flex-direction: column;
        width: calc(100% - 2em);
    }

    /* these were ballooning - the icon was sized as a percentage
       of a now full width card */
    .socialCard{
        /* the base rule is flex: 1 1 14em - once .links stacks, that
           14em basis becomes a 14em tall card. Size to content instead. */
        flex: 0 0 auto;
        width: 100%;
        margin: 0.25em 0em;
        padding: 0.4em 0.75em;
        gap: 0.75em;
        justify-content: center;
        img{
            width: 2.8em;
            max-width: 2.8em;
            padding: 0em;
        }
        a{
            padding: 0.5em;
        }
    }
}
